#!/bin/bash

array=()
count=6
for i in {a..z} {A..Z} {0..9}; 
   do
   array[$RANDOM]=$i
done

printf %s ${array[@]::$count} $'\n'